<html lang="en" xml:lang="en"><head>
<META http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="description" content="The Smart Editor widget extends the Edit widget with a better user experience and smart attributes."><meta name="content-language" content="en"><link href="rsrc/htmlhelp.css" rel="stylesheet" type="text/css"><title>Web AppBuilder for ArcGIS | Help - 
Smart Editor widget
</title>
                <script type="text/javascript" language="JavaScript">
                    var pathL  = self.location.pathname.split ("/");
                    var fname = pathL[pathL.length-1];
                    var i = fname.lastIndexOf (".htm");
                    if (i>=0) {
                    fname = fname.substring (0, i)
                    } else {
                    //??
                    }
                    if (self.location.hash) {
				    		      fname = fname + self.location.hash;
						        }
                    self.location.replace ("../index.html#//" + fname);
                </script>
                </head><!--Publication GUID: [GUID-E7D1C130-8F87-4109-8D61-E73A46083F52]--><!--Topic GUID: [GUID-E371C399-A5DA-4B22-81A2-A904BB83FB09]--><body><div id="content"><div class="header"><h1>
Smart Editor widget
</h1><div id="breadcrumb"></div></div>
<p id="GUID-E47C26EE-AA89-4153-9C3A-13B40F7308DC">The Smart Editor widget extends the Edit widget with the following features:</p><ul purpose="ul" id="UL_70023A76869B402989331232957DC950"><li purpose="li" id="LI_92BF3F6F67C04B87B10D83AF831111A7">Attribute editing is performed in the panel and not in the pop-up.</li><li purpose="li" id="LI_7C813FCF5A8B4677B199E13DF820DA86">The ability to hide, require, or disable a field based on the values of other fields.</li><li purpose="li" id="LI_5CC5A318BA2A4B2896199FC9C36696C9"> New features and changes to existing features are not pushed to the service until you click <span class="uicontrol">Save</span>.</li><li purpose="li" id="LI_570C03F1B7AE4048B146A3CFC8B06F81">The ability to view pop-ups  from other data on the map while  editing.</li><li purpose="li" id="LI_AE9F3781C7354BC5B33C1378D9AD0480">The ability to preset field values across many fields on many layers and apply them to every new feature.</li><li purpose="li" id="LI_29897E32148B45EC8EE61BF0C1CF7BD5">The ability to edit a series of features.</li><li purpose="li" id="LI_98FEA717D35542DBBEB4648DF4B46355">The option to move or modify existing geometry.</li><li purpose="li" id="LI_2950310522DA456F8284850122F309EC">Only changed attributes are submitted to the service instead of  the entire record.</li><li purpose="li" id="LI_7601881FEA004037A87FD6911664A572">The option to update a feature's attribute only.</li><li purpose="li" id="LI_D3348BE40FFE462FAFF0486DC36E8A0C">Configurable descriptions are available on both the widget and for each layer.</li><li purpose="li" id="LI_9C56A55C760D4C5CAD02C4C7BB37778F">An optional filter for the templates is available so you can   quickly find the edit template.
</li></ul><div class="section1" id="GUID-82F4C139-BC82-47BF-B7A6-A0E44F54CEAC" purpose="section1"><h2>
 Configuring the Smart Editor widget
</h2><p id="GUID-C1089B8A-732C-41F8-ADCC-41AAEE86AACD">The Smart Editor
widget can be set to open automatically when an app starts. To do
so, click the  dot on the widget to turn it dark green.</p></div>
<div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="GUID-11E2B58C-FAF4-464A-8936-8AA111F054B1"><div class="step_title">Steps:</div><ol>
<li purpose="step" id="GUID-F5A60809-F36A-46C3-9814-FB208243F707">
<span purpose="cmd" id="GUID-DA5E5A20-25AA-46DF-B940-90EBC850735E">
 Hover over the  widget and click the small edit icon <img purpose="img" placement="inline" alt="Edit" title="Edit" src="03w3/GUID-31D329BD-BC73-4BBE-AE1D-3A1261BF912A-web.png">. The configuration window for this widget opens. </span>
</li><li purpose="step" id="ESRI_STEP_0CF0A541EFCD4EB8BADB970D57173B37"><span purpose="cmd" id="GUID-C3B41088-C9F5-44EC-8594-296C205E791D">Optionally click <span class="uicontrol">change widget icon</span>  if you want to replace the default icon for this widget. </span><div class="info" purpose="info">A file explorer window opens, allowing you to choose a local image file to use as the widget icon.</div></li><li purpose="step" id="GUID-1B045BD0-023D-45DC-AFBF-FB50357F6F9D">
<span purpose="cmd" id="GUID-3D706CA9-FCC2-44EC-A11B-6D658C1C4BA9">
Layer settings lists all the editable layers in the map and provides the ability to control the capabilities and actions for each layer. Details for each column are below.
</span>
<div class="info" purpose="info"><ul purpose="ul" id="UL_CD7845E666964C6D8FB30B0D3119B5ED"><li purpose="li" id="LI_33000B736412408FABE835182549A857"><span class="uicontrol">Editable</span>—Allow only certain layers to be editable; check the boxes accordingly.</li><li purpose="li" id="LI_624C906584EA4084A0488CA7DABC5BAB"><span class="uicontrol">Update Only</span>—Option to  limit this layer to only update or modify existing features. If <span class="uicontrol">Allow Delete</span> is also checked, the feature can be deleted.</li><li purpose="li" id="LI_0C8EA6AB8485464FA60EA0FA35DB44A3"><span class="uicontrol">Allow Delete</span>—Option to allow or not allow the user to delete a feature.</li><li purpose="li" id="LI_D9EE8CE59E5C44CFAEAECD6EA010A439"><span class="uicontrol">Disable Geometry Editing</span>—Option to allow or not allow the reshaping and moving of a features geometry.</li><li purpose="li" id="LI_00AC82EA068B4E119B3C5748C14765A9"><span class="uicontrol">Description</span>—Optional parameter to provide a description above the attributes for each layer. This control opens the <span class="uicontrol">Description</span> dialog box.</li><li purpose="li" id="LI_A4B8E11B4EA74C289ED3AC97591CC7DA"><span class="uicontrol">Fields</span>—Select which fields are editable, visible, included in the preset value list, and defines the smart attributes. By default, the widget carries over the display and editable attributes configured in the map.  </li></ul><div class="notes" id="GUID-B8583F75-A42C-4EE5-9501-0BBAAF554AD4"><div class="tip"><img class="note_img" src="rsrc/tip.png" alt="Tip" title="Tip"><span>Tip:</span></div><div class="tipbody"><p id="GUID-65F0875C-E425-48D0-BCD8-138B62A3CE75">This widget does not override the edit settings in the web map and service. If the layer is set to only allow updates, the widget will not allow you to create or delete features.</p></div></div></div><div class="substeps" id="ESRI_SUBSTEPS_0C9009A634D243B5884945EE10987B4D" purpose="substeps"><ol><li purpose="substep" id="ESRI_SUBSTEP_2E452A32C4464DC397606940BBEE1603"><span purpose="cmd" id="GUID-43A1FD57-87FA-4935-9E11-3FB8BB814279">For each layer, check or uncheck the boxes of  <span class="uicontrol">Editable</span>, <span class="uicontrol">Update Only</span>, <span class="uicontrol">Allow Delete</span>, and <span class="uicontrol">Disable Geometry Editing</span>.</span></li><li purpose="substep" id="ESRI_SUBSTEP_B6FDE98891D94169BD3EED6172C53AB8"><span purpose="cmd" id="GUID-869C6947-7FDD-48ED-B267-52657CD9CDDD">Click the icon under the <span class="uicontrol">Description</span> column.   Enter the text in the  dialog box to help users perform edits. </span></li><li purpose="substep" id="ESRI_SUBSTEP_86CE6A02F108483D8FC14F56625EB570"><span purpose="cmd" id="GUID-7BAC5CA9-A2B4-4428-B7F4-BDB8F31F184A">Click the pencil icon under <span class="uicontrol">Fields</span>.  The dialog box lists all the fields for the layer.  Database required fields are noted with a red asterisk(*).  Details for each column are below.</span><div class="info" purpose="info"><ul purpose="ul" id="UL_5AEB704B3648468F943323D0CAF07B40"><li purpose="li" id="LI_E1CC4868B5DF4F8698BE96589471F382"><span class="uicontrol">Display</span>—Determines whether or not to show this field in the attribute dialog box.</li><li purpose="li" id="LI_28F9AA5F9E3743BF9B1115A48E30A178"><span class="uicontrol">Editable</span>—Determines if  the field is editable or not in the attribute dialog box.  Noneditable fields are shown but are disabled.</li><li purpose="li" id="LI_F891991948D24805B7C00AE653AEA6B9"><span class="uicontrol">Preset</span>—When checked, the field will be added to the preset value list.  All fields with the same database name will be grouped together.  If fields have a different alias, each will be shown, separated by a comma (,).  The preset value list provides the ability to set a value prior to editing.  This value is never removed, so it can be applied to any number of edits.  These values will override the template defaults.  Preset is only for new features.</li><li purpose="li" id="LI_942384B8824F4501ADCB2F4735148D76"><span class="uicontrol">Name</span>—Is displayed for reference.</li><li purpose="li" id="LI_8517DF273BA64FF19B77A53F3FDA723A"><span class="uicontrol">Alias</span>—Is displayed for reference.</li><li purpose="li" id="LI_6EB935E758114F9A814966A9D1010050"><span class="uicontrol">Actions</span>—The up and down arrows provide the ability to reorder the field list.  The pencil icon allows you to configure smart attribute settings for this field.
</li></ul></div></li><li purpose="substep" id="ESRI_SUBSTEP_E06D3B8D05064D4896AD407EB8FFFA5C"><span purpose="cmd" id="GUID-536C1476-3818-40CD-AE6A-58D082895D9C">For each field, check or uncheck the boxes for <span class="uicontrol">Display</span>, <span class="uicontrol">Editable</span>, and <span class="uicontrol">Preset</span>.</span></li><li purpose="substep" id="ESRI_SUBSTEP_15091DD3FC2645A6967FCDCD0EF9AA97"><span purpose="cmd" id="GUID-72B56A39-CA37-4037-BF02-54015F8A3867">Click the pencil icon    under <span class="uicontrol">Actions</span>. The smart attributes dialog box  provides the ability to set three actions on a field. Only one action can be performed at a time and they are evaluated in their listed order.  Details for each column are below.</span><div class="info" purpose="info"><ul purpose="ul" id="UL_5F67F2C2A80A438BA3203F60DCA6ED3C"><li purpose="li" id="LI_75B047DB13784A8B86AD7D5BDEC229D1"><span class="uicontrol">Action</span>—Has three actions as shown below.<ul purpose="ul" id="UL_F40C1B23346044C0B9ABC39EE96CC7D0"><li purpose="li" id="LI_F4D2937D53464151A2962BEE3BE68D66"><span class="uicontrol">Hide</span>—Hides this field based on a criteria in another field.</li><li purpose="li" id="LI_205CB15D8992410CA4CEC67A6CEC5D80"><span class="uicontrol">Required</span>—Mandates that this field has a value. The <span class="uicontrol">Save</span> button will not be enabled until it does.</li><li purpose="li" id="LI_2C55EAA0394343C7B0A418B5160BDD24"><span class="uicontrol">Disabled</span>—Does not allow this field to be manipulated based on the criteria from other fields, but the field will be shown.</li></ul></li><li purpose="li" id="LI_6786DD4492C34571834E21B433622C18"><span class="uicontrol">Expression</span>—Shows the SQL for that expression once an action is configured. </li><li purpose="li" id="LI_9E7EA943247B430EBB188FB0973E9601"><span class="uicontrol">Criteria</span>—The up and down arrows provide the ability to reoder the action list. The pencil icon allows you to configure the logic that determines when the action is valid or processed.</li></ul></div></li><li purpose="substep" id="ESRI_SUBSTEP_3C6E3F2612F04FC4BBF1C3EF35965A08"><span purpose="cmd" id="GUID-76063115-32D2-4F4B-BE33-E98336FE411D">Click the pencil icon under the Criteria column for each action. Click <span class="uicontrol">Add a filter expression</span> or <span class="uicontrol">Add an expression set</span> to create your expression in the <span class="uicontrol">Configure clause</span> dialog box.</span><div class="info" purpose="info"><div class="notes" id="GUID-38A5B367-C871-441D-9BD8-19018424C7BC"><div class="tip"><img class="note_img" src="rsrc/tip.png" alt="Tip" title="Tip"><span>Tip:</span></div><div class="tipbody">When  the <span class="uicontrol">Hide</span> action is configured, the <span class="uicontrol">Submit attribute data for this field even when hidden?</span> option  allows you to save the data in a field when it is not displayed.  By unchecking this option, a value in a field hidden by the Smart Attributes will not be saved.</div></div></div></li></ol></div></li><li purpose="step" id="ESRI_STEP_805BDB5C14334520B0D2FA2117722F99"><span purpose="cmd" id="GUID-107FCECE-24F3-488D-89F0-918931E4B165">The General settings section lists settings for the widget that allow you to control the validation and user interface.</span><ul purpose="choices" id="ESRI_CHOICES_62AB37E52A434549874FBB704EFDADD0"><li purpose="choice" id="ESRI_CHOICE_9C9B7EA3852F4C5D89AD76906ED024F5"><span class="uicontrol">Use feature template filter</span>—The feature template filter presents the  keyword and layer filter to narrow down the list of edit templates.  Check the box to enable this option.</li><li purpose="choice" id="ESRI_CHOICE_AA759C216E9649C3A411D528DABC86F6"><span class="uicontrol">Prompt to save unsaved edits when form is closed or switched to the next record</span>—Option to display a prompt when leaving the attribute page of the current record if there are unsaved edits.</li><li purpose="choice" id="ESRI_CHOICE_B6847A20E50D41BF8C3F142D4D4CF278"><span class="uicontrol">Require confirmation when deleting a record</span>—Option to display a prompt when deleting a record.</li><li purpose="choice" id="ESRI_CHOICE_860F3346B2DD4D9BB98F8DFEF7A12686"><span class="uicontrol">Remove feature from selection on save</span>—Option to transition to the next record or back to the <span class="uicontrol">Edit Template</span> page when there is only one record.</li></ul></li><li purpose="step" id="ESRI_STEP_360D95BED3E54C7C9F50D6D5559D83C6"><span purpose="cmd" id="GUID-D317863E-CA4A-4296-BFB4-6CB986FC2199">The <span class="uicontrol">Provide display text for the edit panel</span> section provides the ability to change or remove the text shown above the feature template list. Enter text to help your users preform their edits.  This is especially useful if no layers allow  the creation of new features and the template list is hidden.</span></li><li purpose="step" id="ESRI_STEP_0FA9BC8FBFDA479C897BA9EBA1A4B496"><span purpose="cmd" id="GUID-6A881069-FC02-4FD4-A0C6-746ABF540E69">Click <span class="uicontrol">OK</span> to save and close the configuration window.</span></li>
</ol></div></div>
<div class="section1" id="ESRI_SECTION1_2FF488D950914DA5A6972062DF821E97" purpose="section1"><h2> Using the Smart Editor widget</h2><p id="GUID-6A11DA45-34CB-4398-807F-356CF828CDA4">Open the Smart Editor widget to display the template picker and preset value list. If the layer you want to edit does not show in the template picker, make sure that <span class="uicontrol">Editable</span> is checked for the layer in the configuration and the layer is visible on the map.</p></div><div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="ESRI_STEPS_71B04AE9DD9244C1AC248CECBDCA9EE4"><div class="step_title">Steps:</div><ol><li purpose="step" id="ESRI_STEP_CA51C1CA32BF4672A16D1FAFDD0E9390"><span purpose="cmd" id="GUID-08141196-6575-41F1-8690-58E695F26D1E">If you have configured fields to be included in the Preset list, fill in their values.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-128E8BCD-3E47-4B65-97E3-D9B7CDFA313A-web.png" purpose="img" alt="Enter preset values" title="Enter preset values"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_A1DFAB60CE4D4303B8E49EC08739A77D"><span purpose="cmd" id="GUID-B9F9E2D6-6B2B-46FF-A463-9B0BE2D4FD68">To add a feature, click its symbol in the template and click to add or draw it on the map.  If you have configured to use the  feature template filter, you can search for a template.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-70607C8A-FBA6-437E-8599-7D26E0B9C932-web.png" purpose="img" alt="The feature template filter" title="The feature template filter"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_EF08803833C7429490B332ED595626F0"><span purpose="cmd" id="GUID-EC6ABFA9-487E-49D4-925B-133A0707EEB6">Once you have added a feature, the page transitions to the attributes.</span></li><li purpose="step" id="ESRI_STEP_A2B0458DEFB5440BB43DD6E6602F4C45"><span purpose="cmd" id="GUID-E97F8F97-1498-4B3D-9AFB-4F95DAE8A07C">Enter information into the available fields. The fields vary based on the editable attribute fields in the feature service and the configuration of the editable layer.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-1A75B483-B698-4C6E-B685-068B91CE9BEF-web.png" purpose="img" alt="Enter attribute value" title="Enter attribute value"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_1EAB24E1A3B94EB6ABC08EE508B12C4E"><span purpose="cmd" id="GUID-DF2F57AC-9941-407C-9E0C-AC6F727E1356">To attach an image or other files with a feature (when available), click <span class="uicontrol">Browse</span> in the <span class="uicontrol">Attachments</span> section of the pop-up and browse to the file on your computer.</span></li><li purpose="step" id="ESRI_STEP_2F67A5E1B0E8450ABB5682159DD89AB8"><span purpose="cmd" id="GUID-1B0B12F4-368A-4697-AEE5-DD4B4CABD3E3">To edit a feature, click it on the map to open its attributes and edit the information.</span></li><li purpose="step" id="ESRI_STEP_D529C55F342A496AAC7856F4DD5226E6"><span purpose="cmd" id="GUID-B45E0B09-E371-4895-A602-52A6EA080BC4">To remove a feature, click it on the map to open its attributes and click <span class="uicontrol">Delete</span>. </span></li></ol></div></div><div class="footer"> Copyright © 1995-2016 Esri. All rights reserved. </div></div></body></html>